/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package my12306.http;

/**
 *
 * @author Jack
 */
//<editor-fold defaultstate="collapsed" desc=" TrainInfoMeta ">  
public class TrainInfoMeta {

    private String meta;
    private boolean validate = false;

    public TrainInfoMeta() {
        this.meta = "";
    }

    public TrainInfoMeta(String meta) {
        this.meta = meta;
        if (meta != null && !"".equals(meta)) {
            validate = true;
            String[] items = meta.split("#");
            this.station_train_code = items[0];
            this.lishi = items[1];
            this.train_start_time = items[2];
            this.trainno = items[3];
            this.from_station_telecode = items[4];
            this.to_station_telecode = items[5];
            this.arrive_time = items[6];
            this.from_station_name = items[7];
            this.to_station_name = items[8];
            this.from_station_no = items[9];
            this.to_station_no = items[10];
            this.ypInfoDetail = items[11];
            this.mmStr = items[12];
            this.locationCode=items[13];
        }
    }
    private String station_train_code;
    private String lishi;
    private String train_start_time;
    private String trainno;
    private String from_station_telecode;
    private String to_station_telecode;
    private String arrive_time;
    private String from_station_name;
    private String to_station_name;
    private String from_station_no;
    private String to_station_no;
    private String ypInfoDetail;
    private String mmStr;
    private String locationCode;

    @Override
    public String toString() {
        return this.meta;
    }

    /**
     * @return the station_train_code
     */
    public String getStation_train_code() {
        return station_train_code;
    }

    /**
     * @param station_train_code the station_train_code to set
     */
    public void setStation_train_code(String station_train_code) {
        this.station_train_code = station_train_code;
    }

    /**
     * @return the lishi
     */
    public String getLishi() {
        return lishi;
    }

    /**
     * @param lishi the lishi to set
     */
    public void setLishi(String lishi) {
        this.lishi = lishi;
    }

    /**
     * @return the train_start_time
     */
    public String getTrain_start_time() {
        return train_start_time;
    }

    /**
     * @param train_start_time the train_start_time to set
     */
    public void setTrain_start_time(String train_start_time) {
        this.train_start_time = train_start_time;
    }

    /**
     * @return the trainno
     */
    public String getTrainno() {
        return trainno;
    }

    /**
     * @param trainno the trainno to set
     */
    public void setTrainno(String trainno) {
        this.trainno = trainno;
    }

    /**
     * @return the from_station_telecode
     */
    public String getFrom_station_telecode() {
        return from_station_telecode;
    }

    /**
     * @param from_station_telecode the from_station_telecode to set
     */
    public void setFrom_station_telecode(String from_station_telecode) {
        this.from_station_telecode = from_station_telecode;
    }

    /**
     * @return the to_station_telecode
     */
    public String getTo_station_telecode() {
        return to_station_telecode;
    }

    /**
     * @param to_station_telecode the to_station_telecode to set
     */
    public void setTo_station_telecode(String to_station_telecode) {
        this.to_station_telecode = to_station_telecode;
    }

    /**
     * @return the arrive_time
     */
    public String getArrive_time() {
        return arrive_time;
    }

    /**
     * @param arrive_time the arrive_time to set
     */
    public void setArrive_time(String arrive_time) {
        this.arrive_time = arrive_time;
    }

    /**
     * @return the from_station_name
     */
    public String getFrom_station_name() {
        return from_station_name;
    }

    /**
     * @param from_station_name the from_station_name to set
     */
    public void setFrom_station_name(String from_station_name) {
        this.from_station_name = from_station_name;
    }

    /**
     * @return the to_station_name
     */
    public String getTo_station_name() {
        return to_station_name;
    }

    /**
     * @param to_station_name the to_station_name to set
     */
    public void setTo_station_name(String to_station_name) {
        this.to_station_name = to_station_name;
    }

    /**
     * @return the from_station_no
     */
    public String getFrom_station_no() {
        return from_station_no;
    }

    /**
     * @param from_station_no the from_station_no to set
     */
    public void setFrom_station_no(String from_station_no) {
        this.from_station_no = from_station_no;
    }

    /**
     * @return the to_station_no
     */
    public String getTo_station_no() {
        return to_station_no;
    }

    /**
     * @param to_station_no the to_station_no to set
     */
    public void setTo_station_no(String to_station_no) {
        this.to_station_no = to_station_no;
    }

    /**
     * @return the ypInfoDetail
     */
    public String getYpInfoDetail() {
        return ypInfoDetail;
    }

    /**
     * @param ypInfoDetail the ypInfoDetail to set
     */
    public void setYpInfoDetail(String ypInfoDetail) {
        this.ypInfoDetail = ypInfoDetail;
    }

    /**
     * @return the mmStr
     */
    public String getMmStr() {
        return mmStr;
    }

    /**
     * @param mmStr the mmStr to set
     */
    public void setMmStr(String mmStr) {
        this.mmStr = mmStr;
    }

    /**
     * @return the validate
     */
    public boolean isValidate() {
        return validate;
    }

    /**
     * @return the locationCode
     */
    public String getLocationCode() {
        return locationCode;
    }

    /**
     * @param locationCode the locationCode to set
     */
    public void setLocationCode(String locationCode) {
        this.locationCode = locationCode;
    }
}
//</editor-fold>  

